package com.zhaoxi.demo.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Infor on 2017/06/29.
 */

@Controller
public class HomeController {

    /**
     *  获取index 字符串
     * @return
     */
    @RequestMapping("/getindex")
    @ResponseBody
    public String getIndex(){
        return "index";
    }

    /**
     *  获取index.jsp 页面
     * @return
     */
    @RequestMapping("/index")
    public String index(){return "index";}
}
